package com.fowo.api.model.product.price;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 产品价格 导入导出辅助模型 */
@Getter
@Setter
public class ProductPriceExcelPo {

  @NotNull(message = "产品分组不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*产品分组")
  private String productGroupName;

  @ExcelIgnore
  @ExcelProperty(value = "*产品分组")
  private Long productGroup;

  @NotBlank(message = "定价类型不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*定价类型")
  private String priceType;

  @NotNull(message = "价格系数不能为空")
  @ExcelProperty(value = "*价格系数")
  private java.math.BigDecimal priceCoefficient;

  @ExcelProperty(value = "价格")
  private java.math.BigDecimal price;
}
